package com.xdtech.trans.model;

import java.io.Serializable;
import java.util.Date;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.xdtech.core.model.BaseModel;

/**
 * 
 * @author max.zheng
 * @create 2015-06-07 14:39:35
 * @since 1.0
 * @see 
 */
@Entity
@Table(name="TRANS_ACCOUNT_TRADE")
public class TransAccountTrade extends BaseModel implements Serializable{
	private static final long serialVersionUID = 1L;
	@Id
	@Column(name = "ID")
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Long id;
	@Column(name="TRADE_NO")
	private String tradeNo;
	@Column(name="TRADE_ORDER_NO")
	private String tradeOrderNo;
	@Column(name="TRADE_DATE")
	private String tradeDate;
	@Column(name="TRADE_TYPE")
	private String tradeType;
	@Column(name="TRADE_BALANCE")
	private Double tradeBalance;
	@Column(name="OPERATOR")
	private String operator;
	@Column(name="REMARK")
	private String remark;
	@Column(name="IS_CASH")
	private String isCash;
	@ManyToOne
	@JoinColumn(name = "ACCOUNT_ID")
	private TransAccount transAccount;

	public void setId(Long id) {
		this.id = id;
	}
	public Long getId() {
		return id;
	}
	public void setTradeNo(String tradeNo) {
		this.tradeNo = tradeNo;
	}
	public String getTradeNo() {
		return tradeNo;
	}
	public void setTradeDate(String tradeDate) {
		this.tradeDate = tradeDate;
	}
	public String getTradeDate() {
		return tradeDate;
	}
	public void setTradeType(String tradeType) {
		this.tradeType = tradeType;
	}
	public String getTradeType() {
		return tradeType;
	}
	public void setTradeBalance(Double tradeBalance) {
		this.tradeBalance = tradeBalance;
	}
	public Double getTradeBalance() {
		return tradeBalance;
	}
	public void setOperator(String operator) {
		this.operator = operator;
	}
	public String getOperator() {
		return operator;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public TransAccount getTransAccount() {
		return transAccount;
	}
	public void setTransAccount(TransAccount transAccount) {
		this.transAccount = transAccount;
	}
	public String getTradeOrderNo()
	{
		return tradeOrderNo;
	}
	public void setTradeOrderNo(String tradeOrderNo)
	{
		this.tradeOrderNo = tradeOrderNo;
	}
	public String getIsCash() {
		return isCash;
	}
	public void setIsCash(String isCash) {
		this.isCash = isCash;
	}
	
	
}
